class MyClass
  # To change this template use File | Settings | File Templates.
  def testing_self
    @var = 10
    my_method()
    self
  end

  def my_method
    @var += 1
  end
end

puts 'Running...'
obj = MyClass.new
puts obj.testing_self